package one.stand.model;

import java.io.Serializable;
import java.util.Date;

public class ChatContent implements Serializable {
    private Long id;

    private String cid;

    private Long userid;

    private String avatar;

    private String username;

    private String type;

    private String content;

    private Date ctime;

    private static final long serialVersionUID = 1L;

    public ChatContent(Long id, String cid, Long userid, String avatar, String username, String type, String content, Date ctime) {
        this.id = id;
        this.cid = cid;
        this.userid = userid;
        this.avatar = avatar;
        this.username = username;
        this.type = type;
        this.content = content;
        this.ctime = ctime;
    }

    public ChatContent() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid == null ? null : cid.trim();
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar == null ? null : avatar.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }
}